'''
@Descripttion: 
@version: 
@encoding: utf-8
@Author: qiurongcan
Date: 2025-08-31 14:47:11
LastEditTime: 2025-08-31 17:01:50
'''

# 太强了

class Solution:

    def subsets(self, nums):

        res = [[]]
        for i in nums:
            # 思路，新来的和原有的实现组合
            res = res + [[i] + num for num in res]
        
        return res


